/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.lihle.designconceptsprinciples.question3.interfacesegregation.obey.model.impl;

import com.lihle.designconceptsprinciples.question3.interfacesegregation.obey.model.FeedableInterface;
import com.lihle.designconceptsprinciples.question3.interfacesegregation.obey.model.WorkableInterface;

/**
 *
 * @author user
 */
public class Workers implements WorkableInterface ,FeedableInterface{

    //String work ="work";
   // String eat = "eat";
    

    @Override
    public boolean work(String emp) {
        if(emp.equals("work"))
          return true;
        else
          return false;
    }

    @Override
    public boolean eat(String e) {
        if(e.equals("eat"))
          return true;
        else
          return false;
    }
}
